of

public static Language of(String code, String region)

Creates a new Language with the given code and region.

This method does not check that the constructed Language is a valid language that can be used for spell checking.

Return

a Language with the given code and region.

Parameters

code

the language code

region

the region

Throws

when the given code or region is empty or blank


public static Language of(String code)

Returns a Language with the given code.

Return

a Language with the given code

Parameters

code

the language code